package com.troll.wanandroid.design.fragment;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.troll.wanandroid.R;

/**
 * @Author: TangPeng
 * @Time: 1/6/21 8:56 PM
 * @Remark:
 */
public class MineFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.frag_mine, null);
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.i("MineFragment可见性", "onResume");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.i("MineFragment可见性", "onPause");
    }

    @Override
    public void setUserVisibleHint(boolean isVisibleToUser) {
        super.setUserVisibleHint(isVisibleToUser);
        Log.i("MineFragment可见性", "setUserVisibleHint::::" + isVisibleToUser);

    }
}
